""" randomwalk.py implements a random-walk algorithm
Scope should include these variables:
thisMonster
level
"""
import random

random.seed()

if thisMonster.TilePosition == thisMonster.TargetTile:
	thisMonster.TargetTile = Vector3(random.randint(thisMonster.TilePosition.X-5, thisMonster.TilePosition.X+5),\
	0,random.randint(thisMonster.TilePosition.Z-5, thisMonster.TilePosition.Z+5))
	thisMonster.AiState.Push("pathfinding")
